From: Juergen Gross Date: Tue, 10 Jun 2014 10:04:08 +0000 (+0200) Subject: avoid crash on HVM domain destroy with PCI passthrough X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4887 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b9ae60907e6dbc686403e52a7e61a6f856401a1b;p=xen.git avoid crash on HVM domain destroy with PCI passthrough c/s bac6334b5 "move domain to cpupool0 before destroying it" introduced a problem when destroying a HVM domain with PCI passthrough enabled. The moving of the domain to cpupool0 includes moving the pirqs to the cpupool0 cpus, but the event channel infrastructure already is unusable for the domain. So just avoid moving pirqs for dying domains. Signed-off-by: Juergen Gross --- diff --git a/xen/common/schedule.c b/xen/common/schedule.c index c174c41dee..3ea9fc8042 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -297,7 +297,8 @@ int sched_move_domain(struct domain *d, struct cpupool *c) spin_unlock_irq(lock); v->sched_priv = vcpu_priv[v->vcpu_id]; - evtchn_move_pirqs(v); + if ( !d->is_dying ) + evtchn_move_pirqs(v); new_p = cpumask_cycle(new_p, c->cpu_valid);